<?php echo $header; ?><?php echo $content_top; ?>

<div class="category-info" style="background:#333;">
  <div class="title"><?php echo $heading_title; ?></div>
  
  <?php if ($thumb1 || $description ) { ?>
    <?php if ($thumb1) { ?>
    <div class="image"><img src="<?php echo $thumb1; ?>" alt="<?php echo $heading_title; ?>" /></div>
    <?php } ?>
    <?php if ($description) { ?>
    <?php //echo $description; ?>
    <?php } ?>
  <?php } ?>
  
  </div>

<?php //echo $column_left; ?>
<?php //echo $column_right; ?>

<div id="content">
  <div class="breadcrumb">
    <?php foreach ($breadcrumbs as $breadcrumb) { ?>
    <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
    <?php } ?>
  </div>
  
  <?php if ($categories) { ?>
    <div style="width:100%;">
    <h2><?php //echo $text_refine; ?></h2>
        <?php foreach ($categories as $category) { ?>
          <div style="background: #e0e0e0; display:inline-block; margin:3px 2px 10px 0;">
          <a href="<?php echo $category['href']; ?>">
            <?php if ($category['thumb2']) { ?>
              <img src="<?php echo $category['thumb2']; ?>" alt="<?php echo $category['name']; ?>" />
            <?php } ?>
            <?php //echo $category['name']; ?>
          </a>
          <?php //echo $category['description']; ?>
          </div>
        <?php } ?>
  </div>
  <?php } ?>
  
  <?php if ($products) { ?>
  <div class="product-filter">
    <div class="display"></div>
    <div class="limit"><?php echo $text_limit; ?>
      <select onchange="location = this.value;">
        <?php foreach ($limits as $limits) { ?>
        <?php if ($limits['value'] == $limit) { ?>
        <option value="<?php echo $limits['href']; ?>" selected="selected"><?php echo $limits['text']; ?></option>
        <?php } else { ?>
        <option value="<?php echo $limits['href']; ?>"><?php echo $limits['text']; ?></option>
        <?php } ?>
        <?php } ?>
      </select>
    </div>
    <div class="sort"><?php echo $text_sort; ?>
      <select onchange="location = this.value;">
        <?php foreach ($sorts as $sorts) { ?>
        <?php if ($sorts['value'] == $sort . '-' . $order) { ?>
        <option value="<?php echo $sorts['href']; ?>" selected="selected"><?php echo $sorts['text']; ?></option>
        <?php } else { ?>
        <option value="<?php echo $sorts['href']; ?>"><?php echo $sorts['text']; ?></option>
        <?php } ?>
        <?php } ?>
      </select>
    </div>
  </div>
  <div class="clear"></div>
  <div class="product-grid">
    <?php foreach ($products as $product) { ?>
    <div>
    
    
      <?php if ($product['thumb1']) { ?>
      <div class="image">
      <a class="ilang" href="<?php echo $product['href']; ?>">
      <img src="<?php echo $product['thumb2']; ?>" title="" alt="" />
      </a>
      <img src="<?php echo $product['thumb1']; ?>" title="<?php echo $product['name']; ?>" alt="<?php echo $product['name']; ?>" />
      
      </div>
      <?php } ?>
      
      <div class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></div>
      
      <div class="description"><?php echo $product['description']; ?></div>
      <?php if ($product['price']) { ?>

      <div class="price">
        <?php if (!$product['special']) { ?>
        <?php echo $product['price']; ?>
        <?php } else { ?>
        <span class="price-old"><?php echo $product['price']; ?></span><br /><span class="price-new"><?php echo $product['special']; ?></span>
        <?php } ?>
        <?php if ($product['tax']) { ?>
        <br />
        <span class="price-tax"><?php echo $text_tax; ?> <?php echo $product['tax']; ?></span>
        <?php } ?>
      </div>

      <?php } ?>
      <?php if ($product['rating']) { ?>
      <div class="rating"><img src="catalog/view/theme/default/image/stars-<?php echo $product['rating']; ?>.png" alt="<?php echo $product['reviews']; ?>" /></div>
      <?php } ?>
      
      
    </div>
    <?php } ?>
  </div>
  <div class="pagination"><?php echo $pagination; ?></div>
  <?php } ?>
  <?php if (!$categories && !$products) { ?>
  <div class="content"><?php echo $text_empty; ?></div>
  <div class="buttons">
    <div class="right"><a href="<?php echo $continue; ?>" class="button"><?php echo $button_continue; ?></a></div>
  </div>
  <?php } ?>
  <?php echo $content_bottom; ?></div>

<?php echo $footer; ?>